import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Manager from "@/components/Manager";
import SaleChanceList from "@/components/saleChance/SaleChanceList";
import MySaleChanceList from "@/components/saleChance/MySaleChanceList";
import AddSaleChance from "@/components/saleChance/AddSaleChance";
import SalePlanList from "@/components/saleChance/SalePlanList";
import AddSalePlan from "@/components/saleChance/AddSalePlan";
import DisSaleChance from "@/components/saleChance/DisSaleChance";
import EmpList from "@/components/emp/EmpList";
import AddEmp from "@/components/emp/AddEmp";
import EquipmentList from "@/components/equipment/EquipmentList";
import AddEquipment from "@/components/equipment/AddEquipment";
import MemberList from "@/components/member/MemberList";
import AddMember from "@/components/member/AddMember";
import UpdateMember from "@/components/member/UpdateMember";
import MemberTjList from "@/components/member/MemberTjList";

Vue.use(Router)

export default new Router({
  routes: [
    {path: "/", component: Login},
    {
      path: "/manager", component: Manager,
      children:[
        {path: "/saleChance/SaleChanceList", component: SaleChanceList},
        {path: "/saleChance/AddSaleChance", component: AddSaleChance},
        {path: "/saleChance/SalePlanList", component: SalePlanList},
        {path: "/saleChance/AddSalePlan", component: AddSalePlan},
        {path: "/saleChance/DisSaleChance", component: DisSaleChance},
        {path: "/saleChance/MySaleChanceList", component: MySaleChanceList},
        {path: "/emp/EmpList", component: EmpList},
        {path: "/emp/AddEmp", component: AddEmp},
        {path: "/equipment/AddEquipment", component: AddEquipment},
        {path: "/equipment/EquipmentList", component: EquipmentList},
        {path: "/member/MemberList", component: MemberList},
        {path: "/member/AddMember", component: AddMember},
        {path: "/member/UpdateMember", component: UpdateMember},
        {path: "/member/MemberTjList", component: MemberTjList},
      ]
    }
  ]
})
